package file;
import java.io.File;
import java.io.IOException;

//文件删除
public class demo3 {
    public static void main(String[] args) throws InterruptedException {
        File file = new File("./text.txt");
        //file.delete();

        //file.createNewFile();
        file.deleteOnExit();
        Thread.sleep(5000);

    }
}
